package com.example.superoa.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the salary_details database table.
 * 
 */
@Entity
@Table(name="salary_details")
@NamedQuery(name="SalaryDetail.findAll", query="SELECT s FROM SalaryDetail s")
public class SalaryDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="sd_id")
	private int sdId;

	@Column(name="sd_absent")
	private BigDecimal sdAbsent;

	@Column(name="sd_bonus")
	private BigDecimal sdBonus;

	@Column(name="sd_count")
	private BigDecimal sdCount;

	@Column(name="sd_late")
	private BigDecimal sdLate;

	@Column(name="sd_le")
	private BigDecimal sdLe;

	@Column(name="sd_overtime")
	private BigDecimal sdOvertime;

	@Column(name="sd_sf")
	private BigDecimal sdSf;

	@Column(name="sd_taxe")
	private BigDecimal sdTaxe;

	@Column(name="sd_traffic")
	private BigDecimal sdTraffic;

	@Column(name="sd_vacation")
	private BigDecimal sdVacation;

	@Column(name="sd_welfare")
	private BigDecimal sdWelfare;

	@Column(name="sd_yf")
	private BigDecimal sdYf;

	@Column(name="sd_yk")
	private BigDecimal sdYk;

	//bi-directional many-to-one association to SalaryPay
	@ManyToOne
	@JoinColumn(name="pay_id")
	private SalaryPay salaryPay;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="staff_id")
	private Staff staff;

	public SalaryDetail() {
	}

	public int getSdId() {
		return this.sdId;
	}

	public void setSdId(int sdId) {
		this.sdId = sdId;
	}

	public BigDecimal getSdAbsent() {
		return this.sdAbsent;
	}

	public void setSdAbsent(BigDecimal sdAbsent) {
		this.sdAbsent = sdAbsent;
	}

	public BigDecimal getSdBonus() {
		return this.sdBonus;
	}

	public void setSdBonus(BigDecimal sdBonus) {
		this.sdBonus = sdBonus;
	}

	public BigDecimal getSdCount() {
		return this.sdCount;
	}

	public void setSdCount(BigDecimal sdCount) {
		this.sdCount = sdCount;
	}

	public BigDecimal getSdLate() {
		return this.sdLate;
	}

	public void setSdLate(BigDecimal sdLate) {
		this.sdLate = sdLate;
	}

	public BigDecimal getSdLe() {
		return this.sdLe;
	}

	public void setSdLe(BigDecimal sdLe) {
		this.sdLe = sdLe;
	}

	public BigDecimal getSdOvertime() {
		return this.sdOvertime;
	}

	public void setSdOvertime(BigDecimal sdOvertime) {
		this.sdOvertime = sdOvertime;
	}

	public BigDecimal getSdSf() {
		return this.sdSf;
	}

	public void setSdSf(BigDecimal sdSf) {
		this.sdSf = sdSf;
	}

	public BigDecimal getSdTaxe() {
		return this.sdTaxe;
	}

	public void setSdTaxe(BigDecimal sdTaxe) {
		this.sdTaxe = sdTaxe;
	}

	public BigDecimal getSdTraffic() {
		return this.sdTraffic;
	}

	public void setSdTraffic(BigDecimal sdTraffic) {
		this.sdTraffic = sdTraffic;
	}

	public BigDecimal getSdVacation() {
		return this.sdVacation;
	}

	public void setSdVacation(BigDecimal sdVacation) {
		this.sdVacation = sdVacation;
	}

	public BigDecimal getSdWelfare() {
		return this.sdWelfare;
	}

	public void setSdWelfare(BigDecimal sdWelfare) {
		this.sdWelfare = sdWelfare;
	}

	public BigDecimal getSdYf() {
		return this.sdYf;
	}

	public void setSdYf(BigDecimal sdYf) {
		this.sdYf = sdYf;
	}

	public BigDecimal getSdYk() {
		return this.sdYk;
	}

	public void setSdYk(BigDecimal sdYk) {
		this.sdYk = sdYk;
	}

	public SalaryPay getSalaryPay() {
		return this.salaryPay;
	}

	public void setSalaryPay(SalaryPay salaryPay) {
		this.salaryPay = salaryPay;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}